package LinkedList.LinkedList;

public class Test {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addLast(1);
        myLinkedList.addLast(2);
        myLinkedList.addLast(3);
        myLinkedList.addLast(2);
        myLinkedList.addLast(3);
        myLinkedList.addLast(4);//1 2 3 2 3 4
        //myLinkedList.addIndex(2,99);
        //myLinkedList.remove(2);
        myLinkedList.removeAllKey(2);
        myLinkedList.display();
        System.out.println("--------------------");
        myLinkedList.clear();
        myLinkedList.display();
    }
}
